package com.cskaoyan.mapper.wx;

import com.cskaoyan.bean.po.MarketCouponUser;
import com.cskaoyan.bean.wx.coupon.WxCouponListListVO;
import com.cskaoyan.bean.wx.coupon.WxCouponMylistListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chenai
 * @description TODO
 * @date 2022-06-07 22:42
 */
public interface WxCouponMapper {
    List<WxCouponMylistListVO> quaryCouponByUserId(@Param("userId") Integer userId,@Param("status") Integer status);

    int queryUserCouponCountById(@Param("couponId") Integer couponId,@Param("userId")Integer userId);

    MarketCouponUser quaryCouponInfoForUserByCouponId(@Param("couponId") Integer couponId);

    List<WxCouponListListVO> quaryCouponList();

    Integer queryCouponIdByCode(@Param("code") String code);

    Integer getDays(@Param("couponId")Integer couponId);

    Short getTimeType(Integer couponId);
}
